#ifndef WF_DRAWHATCH_H
#define WF_DRAWHATCH_H

#include "pf_previewactioninterface.h"
#include "pf_hatch.h"
#include "gui_export.h"

/**
 * This action class can handle user events to draw hatches.
 *
 */
class GUI_EXPORT WF_DrawHatch : public PF_PreviewActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
        ShowDialog           /**< Showing the hatch dialog. */
    };

public:
    WF_DrawHatch(PF_Container& container,
                      PF_GraphicView& graphicView);
    ~WF_DrawHatch() {}
	
	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

private:
    PF_HatchAttribute data;
	PF_Hatch* hatch;
};

#endif
